package com.wangyuan.demo.entity;

import java.io.Serializable;

/**
 * Emp实体类对象
 *
 * @author Albert
 * @date 2025-06-23 21:28:49
 * @return
 */
public class Emp implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String name;
    private Double salary;
    private Integer age;

    /**
     * 无参构造方法
     */
    public Emp() {
    }

    /**
     * 有参构造方法
     *
     * @param id
     * @param name
     * @param salary
     * @param age
     */
    public Emp(String id, String name, Double salary, Integer age) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.age = age;
    }

    // 手写getter和setter方法
    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Double getSalary() {
        return salary;
    }

    public Integer getAge() {
        return age;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}